package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffAchievementTypeGradeRelationshipDto
 * @使用场景
 */
@Data
public class BffAchievementTypeGradeRelationshipDto implements Serializable {

    /**
     * 成果类型等级关系ID
     */
    @ApiModelProperty("成果类型等级关系ID")
    private String typeGradeRelationshipId;

    /**
     * 成果等级ID
     */
    @ApiModelProperty("成果等级ID")
    private String achievementGradeId;

    /**
     * 成果等级编号
     */
    @ApiModelProperty("成果等级编号")
    private String achievementGradeNumber;

    /**
     * 成果等级名称
     */
    @ApiModelProperty("成果等级名称")
    private String achievementGradeName;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffAchievementTypeGradeRelationshipDto that = (BffAchievementTypeGradeRelationshipDto) o;
        return typeGradeRelationshipId == that.typeGradeRelationshipId && achievementGradeId == that.achievementGradeId && achievementGradeNumber == that.achievementGradeNumber && achievementGradeName == that.achievementGradeName && subjectLifeCycle == that.subjectLifeCycle && orderNumber == that.orderNumber;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), typeGradeRelationshipId, achievementGradeId, achievementGradeNumber, achievementGradeName, subjectLifeCycle, orderNumber);
    }

}
